<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
<div class="timo-detail-page">
    <div class="timo-detail-title">任务基本详情</div>
    <table class="layui-table timo-detail-table">
        <tbody>
        <tr>
            <th width='100px'>应用名称</th>
            <td th:text="${app.name}"></td>
            <th width='100px'>appName</th>
            <td th:text="${app.appName}"></td>
        </tr>
        <tr>
            <th width='100px'>任务名称</th>
            <td th:text="${job.jobName}"></td>
            <th width='100px'>处理器</th>
            <td th:text="${job.handlerName}"></td>
        </tr>
        <tr>
            <th width='100px'>任务触发Id</th>
            <td th:text="${trigger.id}"></td>
            <th width='100px'>触发状态</th>
            <td th:text="${trigger.triggerResultCode}"></td>
        </tr>
        <tr>
            <th width='100px'>任务触发时间</th>
            <td th:text="${trigger.triggerTime}"></td>
            <th width='100px'>触发结束时间</th>
            <td th:text="${trigger.triggerEndTime}"></td>
        </tr>
        <tr>
            <th width='100px'>返回码</th>
            <td th:text="${trigger.triggerResultCode}"></td>
            <th width='100px'>返回信息</th>
            <td th:text="${trigger.triggerResultMessage}"></td>
        </tr>
        </tbody>
    </table>
    <div class="timo-detail-title">任务执行详情</div>
    <table class="layui-table timo-detail-table">
        <tbody>
        <tr>
            <th width='100px'>Id</th>
            <td th:text="${execute.id}" colspan="4"></td>
        </tr>
        <tr>
            <th width='100px'>执行主机</th>
            <td th:text="${execute.endpointIp}"></td>
            <th width='100px'>执行端口</th>
            <td th:text="${execute.endpointPort}"></td>
        </tr>
        <tr>
            <th width='100px'>网络协议</th>
            <td th:text="${#dicts.keyValue('NET_PROTOCOL', execute.netProtocol)}"></td>
            <th width='100px'>执行状态</th>
            <td th:text="${#dicts.keyValue('EXECUTE_STATUS', execute.executeStatus)}"></td>
        </tr>
        <tr>
            <th width='100px'>开始时间</th>
            <td th:text="${execute.beginTime}"></td>
            <th width='100px'>结束时间</th>
            <td th:text="${execute.endTime}"></td>
        </tr>
        <tr>
            <th width='100px'>执行参数</th>
            <td th:text="${execute.executeParam}" colspan="4"></td>
        </tr>
        <tr>
            <th width='100px'>执行返回结果</th>
            <td th:text="${execute.executeResult}" colspan="4"></td>
        </tr>
        <tr>
            <th width='100px'>执行错误信息</th>
            <td colspan="4">
                <textarea th:text="${execute.executeErrorMessage}" th:if="${execute.executeErrorMessage}" style="width: 100%; height: 100px"></textarea>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>